import fs from 'fs'
import zlib from 'zlib'
import process from 'process'
import path from 'path'

const gunzip = zlib.createGunzip()

const inFile = fs.createReadStream(path.join(process.cwd(), 'src/0010_解压缩/data.pdf.gz'))
const outFile = fs.createWriteStream(path.join(process.cwd(), 'src/0010_解压缩/data.pdf'))


inFile.pipe(gunzip).pipe(outFile)

console.log('结束------------');

